package com.myz.app.entity;

import java.util.List;

/**
 * 角色
 * @author maoyz on 18-3-13.
 */
public class Role {

    private Integer roleId;

    private String roleType;
    /**一个角色对应多个权限*/
    private List<Permission> permissions;

    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    @Override
    public String toString() {
        return "Role{" +
                "roleId=" + roleId +
                ", roleType='" + roleType + '\'' +
                ", permissions=" + permissions +
                '}';
    }
}
